package com.seashop.util;

import java.util.Random;

/**
 * @author moredln
 * @desc
 * @date 2020-08-05 22:00
 */
public class RandomUtil {

    public static String getRandom(int num) {
        StringBuilder str = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < num; i++) {
            str.append(random.nextInt(10));
        }
        return str.toString();
    }

}
